﻿namespace HamcoWcs.Models.Common.Enums
{
    /// <summary>
    /// WCS与WMS通讯用消息类型
    /// </summary>
    public enum EnumWmsApiMsgType
    {
        /// <summary>
        /// Wcs目的地请求
        /// </summary>
        RequestDest = 1,
        /// <summary>
        /// Wcs申请空箱
        /// </summary>
        RequestEmpty,
        /// <summary>
        /// Wcs上报堆垛机取货完成
        /// </summary>
        StepFinish,
        /// <summary>
        /// Wcs上报任务完成
        /// </summary>
        TaskFinish,
        /// <summary>
        /// Wcs上报任务异常
        /// </summary>
        TaskError,
        /// <summary>
        /// Wcs上报设备状态
        /// </summary>
        DeviceStatus,



        /// <summary>
        /// Wms入库任务
        /// </summary>
        InboundTask = 51,
        /// <summary>
        /// Wms出库任务
        /// </summary>
        OutboundTask,
        /// <summary>
        /// Wms移动任务
        /// </summary>
        MoveTask,
        /// <summary>
        /// Wms移库任务
        /// </summary>
        LocMoveTask,
        /// <summary>
        /// Wms下发取消任务
        /// </summary>
        CancelTask,
        /// <summary>
        /// Wms更新目的地/货位
        /// </summary>
        UpdateDest,
        /// <summary>
        /// Wms下发LED显示内容
        /// </summary>
        LedMsg,
        /// <summary>
        /// Wms请求设备状态
        /// </summary>
        RequestStatus




    }

    /// <summary>
    /// 异常区分
    /// </summary>
    public enum EnumApiReasonCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0,
        /// <summary>
        /// 空取货
        /// </summary>
        EmptyOut,
        /// <summary>
        /// 二重卸货
        /// </summary>
        RepeatIn,
        /// <summary>
        /// 远端取货近端货位占用
        /// </summary>
        FarOutNearStock,
        /// <summary>
        /// 远端卸货近端货位占用
        /// </summary>
        FarInNearStock,
        /// <summary>
        /// 设备离线
        /// </summary>
        DeviceOffline = 11,
        /// <summary>
        /// 设备手动
        /// </summary>
        DeviceManual,
        /// <summary>
        /// 入库模式
        /// </summary>
        DeviceInMode,
        /// <summary>
        /// 出库模式
        /// </summary>
        DeviceOutMode,
        /// <summary>
        /// 堆垛机取货完成
        /// </summary>
        StackerPickupFinish = 21,
        /// <summary>
        /// 堆垛机出库完成
        /// </summary>
        StackerOutFinish,
        /// <summary>
        /// 输送机入库完成
        /// </summary>
        ConveyorFinish,
        /// <summary>
        /// AGV搬送完成
        /// </summary>
        AgvFinish,
    }


}
